package cc.mrbird.febs.system.service;

import cc.mrbird.febs.system.domain.Area;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * @author dtwei
 */
public interface AreaService extends IService<Area> {

    Map<String, Object> findAreas(Area area);

    void createArea(Area area) throws Exception;

    /**
     * 递归删除区域
     *
     * @param areaIds
     */
    void deleteAreas(String[] areaIds) throws Exception;

    void updateArea(Area area) throws Exception;

    List<Area> findAreaList(Area area);

    List<Area> findAllAreaList();
}
